package com.lxd.api.config;


import com.lxd.common.constants.RabbitMQConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author Dongdong
 * @注释 rabbitmq 配置类
 */
@Configuration
public class RabbitMQConfig {
    /**
     * 接口模块- 策略模块的队列
     */
    @Bean
    public Queue preSendQueue(){
       return QueueBuilder.durable(RabbitMQConstants.SMS_PRE_SEND).build();
    }


}
